package com.groupbuying.weblogback.controller;

import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.web.bind.annotation.*;

/**
 * @author zmlmagic
 * @date 2019/10/8 11:58 AM
 * @company 蒙泰互联网公司
 * @des 用户端使用日志
 **/

@RestController
@RequestMapping("/userinfo")
public class UserInfoLogController {
    private static final Logger logger = LoggerFactory.getLogger(UserInfoLogController.class);
    /**
     * @param {String} title 标题
     * @param {String} body  内容
     */
    @GetMapping("/create")
    public void create(String title, String body) {
        StringBuilder message = new StringBuilder();
        message.append("信息标题：" + title + "\n");
        message.append("信息内容：" + body + "\n");
        logger.info(message.toString());
    }
}
